<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace yiike\credit\api\controllers;

/**
 * Description of MyController
 *
 * @author dragon
 */
class MyController extends \api\components\UserController {
    
    function actionIndex() {
        $credits = \Yii::$app->credit->get($this->getUser()->id);
        return ['code' => 0] + $credits;
    }
}
